package com.pktechan.manage.sendMiniMessage;


import com.pktechan.manage.sendMiniMessage.enumration.SendMiniMessageEnum;

import java.util.Map;

/**
 * @program: gsPrivateSale19
 * @description: 发送微信公众号模板消息对象单例
 * @author: qx.zhang
 * @create: 2020-02-28 16:28
 **/
public class SendMiniMessageSingleton {
    public SendMiniMessageSingleton() {
    }

    public static class Singleton {
        private static Map<SendMiniMessageEnum, SendMiniMessageStrategy> map;

        static {
            map = SendMiniMessageBeanInitialization.getMap();
        }

        private static Map<SendMiniMessageEnum, SendMiniMessageStrategy> getInstance() {
            return map;
        }
    }

    public static Map<SendMiniMessageEnum, SendMiniMessageStrategy> getInstance() {
        return Singleton.getInstance();
    }
}
